package sk.fiit.vppj.eventmanager.data;

/**
 * Data class contains project evaluation information for Judge. Class is mutable.
 * @author Marek
 *
 */
public final class ProjectSingleEval {
	private int criteria_id = 0;
	private int eval_id = 0;
	private int points = 0;
	private int maxPoints = 0;
	private String criteriaName = null;
	private String criteriaDescription = null;

	public ProjectSingleEval() {
	}
	
	public final int getEvalId() {
		return this.eval_id;
	}

	public void setEvalId(int id) {
		this.eval_id = id;
	}

	public final int getCriteriaId() {
		return this.criteria_id;
	}

	public void setCriteriaId(int id) {
		this.criteria_id = id;
	}

	public final int getPoints() {
		return this.points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public final int getMaxPoints() {
		return this.maxPoints;
	}
	
	public void setMaxPoints(int maxPoints) {
		this.maxPoints = maxPoints;
	}

	public String getCriteriaName() {
		return this.criteriaName;
	}

	public void setCriteriaName(String categoryName) {
		this.criteriaName = categoryName;
	}
	
	public String getCriteriaDescription() {
		return this.criteriaDescription;
	}

	public void setCriteriaDescription(String categoryDescription) {
		this.criteriaDescription = categoryDescription;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + eval_id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if( this == obj )
			return true;
		if( obj == null )
			return false;
		if( getClass() != obj.getClass() )
			return false;
		ProjectSingleEval other = ( ProjectSingleEval ) obj;
		if( eval_id != other.eval_id )
			return false;
		return true;
	}

}
